#include "Page_Login.h"

Page_Login::Page_Login(void)
{
	snd=hge->Effect_Load("../Resource/menu.wav");
    fnt=new hgeFont("../Resource/font1.fnt");
	MenuItemPlay=new hgeGUIMenuItem(1,fnt,snd,400,200,0.0f,"Play");
	MenuItemOption=new hgeGUIMenuItem(2,fnt,snd,400,240,0.1f,"Options");
	MenuItemInstruction=new hgeGUIMenuItem(3,fnt,snd,400,280,0.2f,"Instructions");
	MenuItemCredits=new hgeGUIMenuItem(4,fnt,snd,400,320,0.3f,"Credits");
	MenuItemExit=new hgeGUIMenuItem(5,fnt,snd,400,360,0.4f,"Exit");
	this->AddCtrl(MenuItemPlay);
	this->AddCtrl(MenuItemOption);
	this->AddCtrl(MenuItemInstruction);
	this->AddCtrl(MenuItemCredits);
	this->AddCtrl(MenuItemExit);
}

Page_Login::~Page_Login(void)
{
	delete fnt;
	hge->Effect_Free(snd);
}
void Page_Login::MenuItemLBClick(int iCtrId)
{
	switch (iCtrId)
	{
	case 1:
		{
			this->Leave();
		}
		break;
	}
}